package org.jackysoft.service;

import java.util.List;

import org.jackysoft.data.IDataProvider;
import org.jackysoft.workflow.WorkItem;

public interface WorkItemService extends IDataProvider<Long,WorkItem> {
	WorkflowService getWorkflowService();	
	/**
     * 获取当前用户的已办工作项
     * */
	public List<WorkItem> getMyWorkItem(Integer index,Integer offset);

	
	/**
	 * 当前所有工作流
	 * */
	public List<WorkItem> getWorkItems(int start, int size);
	
	
	/**
	 * 监控某个工作流实体
	 * @param entityId 工作流实体编号
	 * */
	public List<WorkItem> watchWorkflow();
	
	int getWatchItemSize();
}
